Declarative Workflow Modeling with UML Class Diagrams and OCL
نویسنده
چکیده
This paper describes an approach of modeling workflows with UML class diagrams and OCL constraints [OCL06] in a declarative way. These are modeled in the UML tool USE [USE08] that can generate object diagrams (snapshots) out of UML class diagrams. USE checks specified OCL constraints against the generated snapshots. With the declarative workflow modeling approach presented here, activity model states are integrated in the object model states. By analyzing these snapshots the model is validated against requirements. In figure 1 a UML class diagram for modeling flat workflows is presented. The class Process has an attribute name and contains a set of activities which is described by the association belongs between Process and Activity. Atomic actions in the process that are executed in the workflow are expressed by the class Activity. Activities have also names that describe the actions and a state in which the activity is just in the time, the snapshot of the system is taken. Possible states for the activities are described in the enumeration State. A derived state of the process depends on the states of the included activities and is delivered by the operation getState in the class Process. Further on, the operation getActivity is needed by the subsequent OCL constraints and returns the requested activity instance. The described operations are specified in OCL expressions and will be interpreted by USE. Figure 1: UML model for flat workflow specifications modeled in USE Actual states of an activity instance can be changed by invoking the methods skip(), start() or done().The functionality of the operations are expressed by OCL preand postconditions. Operation enabled() proves on basis of the current object model state and the inner state of the activity itself, if it is enabled and thus can be started. This method is also coded in an OCL expression.
منابع مشابه
Logical Reasoning with Object Diagrams in a UML and OCL Tool
In this contribution, we introduce an approach to visualize and analyze logical reasoning problems in a UML and OCL tool by using logical puzzles represented with UML diagrams. Logical reasoning is formalized as a UML class diagram model enhanced by OCL restrictions. Puzzle rules and questions are expressed as either partial object diagrams or OCL formulas within the model. Solutions can be fou...
متن کاملEquational Specification of UML+OCL Static Class Diagrams
In this paper we propose an equational specification of UML+OCL static class diagrams that provides a formal foundation for automatically validating UML object diagrams with respect to OCL constraints. Basically, class and object UML diagrams are specified as membership equational theories, and OCL expressions are represented as terms over extensions of those theories. Then, validating object d...
متن کاملUML and OCL Transformation Model Analysis: Checking Invariant Independence
This paper discusses a case study for showing invariant independence for a transformation model. The study is based on an approach that proposes to analyze UML and OCL models using a solver for relational logic. In the approach, UML and OCL models describe system structures formally with UML class diagrams and OCL class invariants. Test cases in form of object diagrams are constructed and emplo...
متن کاملA Model Driven Approach for the Atomated Analysis of UML Class Diagrams
The Unified Modeling Language (UML) is widely considered as the defacto standard for the design of Object Oriented systems. UML class diagrams are used to depict the static structure of a system with its entities and the relationships between them. The Object Constraint Language (OCL) is a textual language based on first-order logic and can be used to define constraints on the elements of class...
متن کاملOCL-Lite: A Decidable (Yet Expressive) Fragment of OCL
UML has become a de facto standard in conceptual modeling. Class diagrams in UML allow one to model the data in the domain of interest by specifying a set of graphical constraints. However, in most cases one needs to provide the class diagram with additional semantics to completely specify the domain, and this is where OCL comes into play. While reasoning over class diagrams is decidable and ha...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2009